import request from '@/utils/request'
import download from "@/utils/downloader.js";
//修改启用/禁用状态暂无!


//用户分页列表
export function teacherList(data) {
	return request({
		url: '/admin/user/teacher/teacherList',
		method: 'get',
		params: data
	})
}

//保存用户信息	
export function teacherSave(data) {
	return request({
		url: '/admin/user/teacher/teacherSave',
		method: 'post',
		data
	})
}
//更新用户信息	
export function teacherUpdate(data) {
	return request({
		url: '/admin/user/teacher/teacherUpdate',
		method: 'post',
		data
	})
}
//重置用户密码	
export function teacherPwdReset(data) {
	return request({
		url: '/admin/user/teacher/resetPassword',
		method: 'put',
		params: data
	})
}
//删除用户
export function teacherRemove(data) {
	return request({
		url: '/admin/user/teacher/teacherRemove',
		method: 'delete',
		params: data
	})
}
//批量导入用户(不选择管理的班级)	
export function importTeacher(data) {
	return request({
		url: '/admin/user/teacher/importTeacher',
		method: 'post',
		data
	})
}
//导出用户
export function teacherExport(data) {
	return download({
		url: '/admin/user/teacher/teacherExport',
		method: 'get',
		params: data
	})
}
//修改启用/禁用状态	
export function updateState(data) {
	return request({
		url: '/system/teacher/updateState',
		method: 'post',
		params: data
	})
}

//当前用户查看个人用户资料
export function teacherInfo(data) {
	return request({
		url: '/admin/user/teacherInfo',
		method: 'get',
		params: data
	})
}
//当前用户修改密码
export function teacherUpdatePwd(data) {
	return request({
		url: '/admin/user/updatePassword',
		method: 'post',
		params: data
	})
}
//修改头像
export function updateHeadPortrait(data) {
	return request({
		url: '/admin/user/updateHeadPortrait',
		method: 'post',
		params: data
	})
}

//下载导入模板	
export function downloadTemplate(data) {
	return download({
		url: '/admin/user/teacher/downloadTemplate',
		method: 'get',
		params: data
	})
}

//用户列表
export function teacherInfoList(data) {
	return request({
		url: '/admin/user/teacher/teacherInfoList',
		method: 'get',
		params: data
	})
}

